define(function(require) {

  var zrender = require('zrender')
  var Rect = require('zrender/graphic/shape/Rect')
  var createEl = require('../util/createEl')

  function Icon(node) {
    this.node = node
    var el = createEl('div', {
      width: node.props.width,
      height: node.props.height
    })
    node.el.appendChild(el);
    this.zr = zrender.init(el);
  }

  Icon.prototype.draw = function() {
    var props = this.node.props;

    var shape = new Rect({
      shape: {
        width: props.width,
        height: props.height,
        r: 5
      },
      style: {
        brushType : 'both',
        color : 'green',
        stroke: 'yellow',
        lineWidth : 10,
        text : 'path',
        textPosition : 'bottom'
      }
    })

    this.zr.add(shape)
  }

  return Icon


})